readyCallback

open override var readyCallback: ReadyCallback?

Optional callback to be notified when Google Pay is ready.

Changes in app state (such as the app going in the background) and certain method calls can cause the readiness of digital wallets to change.

Important:

This callback can (and likely will) be called multiple times. It is recommended to keep this callback active and update your UI accordingly whenever the app is displaying digital wallet UIs.

Note:

When determining if the Google Pay button should be displayed it is important to also verify the restaurant/vendor supports Google Pay as a payment method.